<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Iniuriam: /home/etu/v/p1115890/LIF7/EncoreUn/iniuriam/src/personnage.c File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Iniuriam
   &#160;<span id="projectnumber">alpha 1</span>
   </div>
   <div id="projectbrief"> RPG futuriste</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">/home/etu/v/p1115890/LIF7/EncoreUn/iniuriam/src/personnage.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="personnage_8h_source.html">personnage.h</a>&quot;</code><br/>
</div><table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a9e546144d60b8470f688e1639d73254a">persoInit</a> (<a class="el" href="structPersonnage.html">Personnage</a> *perso)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso n'a pas déjà été initialisé <br/>
 Postconditions : perso est initialisé, vide.  <a href="#a9e546144d60b8470f688e1639d73254a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a21c887d8b0b22116d983534f81886f65">nouveauPerso</a> (<a class="el" href="structPersonnage.html">Personnage</a> *perso, const char nom[], const char race, const char sexe, const char faction, const char carriere, const int experience, const int argent, <a class="el" href="structObjet.html">Objet</a> *tab)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso n'est pas initialisé ou initialisé à vide tab contient tous les objets du jeu les autres paramètres respectent les critères imposés par la structure <br/>
 Postconditions : perso est initialisé et ses paramètres nom, race, sexe, carriere, et expérience sont fournis.  <a href="#a21c887d8b0b22116d983534f81886f65"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#aafc75061db756f5c40cd1ed96de18ed0">chargerPerso</a> (<a class="el" href="structPersonnage.html">Personnage</a> *perso, const char nom[50], const char race, const char sexe, const char faction, const char carriere, const int experience, const int argent, const char attaque, const char defense, const char intelligence, const char agilite, const char charisme, const int ptDeVie, const int posX, const int posY, const <a class="el" href="structCompetence.html">Competence</a> *liste, const int nbCompetence, const int *inventaire, const int nbObjet, const int armure[5], const int arme[3], <a class="el" href="structObjet.html">Objet</a> *tabObjet)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso n'est pas initialisé ou initialisé à vide tous les paramètres respectent les critères imposés par la structure <br/>
 Postconditions : perso est initialisé avec tous les paramètres de sa structure.  <a href="#aafc75061db756f5c40cd1ed96de18ed0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a3c5c40bbdcb31fc766740446f6066339">getNbPNJ</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé <br/>
 Postconditions : 1 obj est ajouté à l'inventaire de perso.  <a href="#a3c5c40bbdcb31fc766740446f6066339"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#ad70a78a4b1f329f24edb75ff6404296d">getNbCarriere</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : / <br/>
 Postconditions : retourne le nombre de carrieres dans Carrieres.txt.  <a href="#ad70a78a4b1f329f24edb75ff6404296d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a0c387c55be7f1a5c8be32c5897de83cc">persoInitPNJ</a> (<a class="el" href="structPersonnage.html">Personnage</a> *perso, const int l, <a class="el" href="structObjet.html">Objet</a> *tab)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso n'est pas initialisé ou initialisé à vide, l&lt;=<a class="el" href="perso__Editeur_8c.html#a3c5c40bbdcb31fc766740446f6066339" title="Preconditions : perso est initialisé   Postconditions : 1 obj est ajouté à l&#39;inventaire de perso...">getNbPNJ()</a> tab contient tous les objets du jeu <br/>
 Postconditions : perso est initialisé avec les paramètres du l-ième PNJ du fichier PNJ.txt.  <a href="#a0c387c55be7f1a5c8be32c5897de83cc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a359b758b174089f2666ef2627cf9494f">persoLibere</a> (<a class="el" href="structPersonnage.html">Personnage</a> *perso)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé <br/>
 Postconditions : perso est libéré  <a href="#a359b758b174089f2666ef2627cf9494f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a6c5dd9378cd5c3b0fe1f416b8264ff34">getPersoNom</a> (char *maChaine, const <a class="el" href="structPersonnage.html">Personnage</a> *perso)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé, maChaine a une longueur &gt;= 30 <br/>
 Postconditions : copie le nom de perso dans maChaine.  <a href="#a6c5dd9378cd5c3b0fe1f416b8264ff34"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#adc299fd0c8f383bfacb4a2b1a9059db3">getPersoRace</a> (const <a class="el" href="structPersonnage.html">Personnage</a> *perso)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé <br/>
 Postconditions : retourne la race du perso.  <a href="#adc299fd0c8f383bfacb4a2b1a9059db3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a48a3a6444b623b7b21f1d61b0fa8b4b1">getRaceNom</a> (char *chaine, char race)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : / <br/>
 Postconditions : copie le nom associé à race dans chaine.  <a href="#a48a3a6444b623b7b21f1d61b0fa8b4b1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#ad3cdc9ecc990b0c3b3d8ee82a50a2d70">getPersoSexe</a> (const <a class="el" href="structPersonnage.html">Personnage</a> *perso)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé <br/>
 Postconditions : retourne le sexe du perso.  <a href="#ad3cdc9ecc990b0c3b3d8ee82a50a2d70"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#ad82354a37f8fe64c2c2ac0112a2b7bd9">getSexeNom</a> (char *chaine, const char sexe)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : / <br/>
 Postconditions : copie le nom associé à sexe dans chaine.  <a href="#ad82354a37f8fe64c2c2ac0112a2b7bd9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a81a3477252b8de71aa6e0dd73678b91b">getPersoFaction</a> (const <a class="el" href="structPersonnage.html">Personnage</a> *perso)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé <br/>
 Postconditions : retourne la faction du perso.  <a href="#a81a3477252b8de71aa6e0dd73678b91b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#afdf8a8513bc06ab2b1f8c709c81203a2">setPersoFaction</a> (<a class="el" href="structPersonnage.html">Personnage</a> *perso, const char faction)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé <br/>
 Postconditions : fixe la faction du perso.  <a href="#afdf8a8513bc06ab2b1f8c709c81203a2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#afc1aa4b064aa249b6ac96d5f0ae32b31">getPersoFactionNom</a> (char *chaine, const <a class="el" href="structPersonnage.html">Personnage</a> *perso)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé <br/>
 Postconditions : copie le nom de la faction de perso dans chaine.  <a href="#afc1aa4b064aa249b6ac96d5f0ae32b31"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#ab4893cfc2068bf42c0711709f09a8377">getPersoCarriere</a> (const <a class="el" href="structPersonnage.html">Personnage</a> *perso)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé <br/>
 Postconditions : retourne la carriere du perso.  <a href="#ab4893cfc2068bf42c0711709f09a8377"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a9d2950d8e223bb9161265aa96565ac77">getCarriereNom</a> (const char carriere, char *s)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé <br/>
 Postconditions : retourne le nom de la carriere dans s.  <a href="#a9d2950d8e223bb9161265aa96565ac77"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a7978919dfdd2414588e8c94bc186c70d">getPersoArgent</a> (const <a class="el" href="structPersonnage.html">Personnage</a> *perso)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#ad02c19f5ec81a8e80cd96eef6c020f5a">getPersoExperience</a> (const <a class="el" href="structPersonnage.html">Personnage</a> *perso)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé <br/>
 Postconditions : retourne l'experience du perso.  <a href="#ad02c19f5ec81a8e80cd96eef6c020f5a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a90709978c20a6f0ca581df54de6e001b">getPersoAttaque</a> (const <a class="el" href="structPersonnage.html">Personnage</a> *perso)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé <br/>
 Postconditions : retourne l'attaque du perso.  <a href="#a90709978c20a6f0ca581df54de6e001b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a2af3a1ad9dddc47eefd1a0c80be57135">getPersoDefense</a> (const <a class="el" href="structPersonnage.html">Personnage</a> *perso)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé <br/>
 Postconditions : retourne la defense du perso.  <a href="#a2af3a1ad9dddc47eefd1a0c80be57135"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a18e5205a52d5d102d72cdf2c992f7107">getPersoIntelligence</a> (const <a class="el" href="structPersonnage.html">Personnage</a> *perso)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé <br/>
 Postconditions : retourne l'intelligence du perso.  <a href="#a18e5205a52d5d102d72cdf2c992f7107"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a1ba9227365c4dbffc13327e9905050cf">getPersoAgilite</a> (const <a class="el" href="structPersonnage.html">Personnage</a> *perso)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé <br/>
 Postconditions : retourne l'agilite du perso.  <a href="#a1ba9227365c4dbffc13327e9905050cf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a8df236592e184846c10e8ccb14eac8dc">getPersoCharisme</a> (const <a class="el" href="structPersonnage.html">Personnage</a> *perso)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé <br/>
 Postconditions : retourne le charsime du perso.  <a href="#a8df236592e184846c10e8ccb14eac8dc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a037b8322d6f0b1987001cf1f47bea1a4">getPersoPtDeVie</a> (const <a class="el" href="structPersonnage.html">Personnage</a> *perso)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé <br/>
 Postconditions : retourne les points de vie du perso.  <a href="#a037b8322d6f0b1987001cf1f47bea1a4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#aa6eea940913b3770d67bf7e5d5672166">getPersoPosX</a> (const <a class="el" href="structPersonnage.html">Personnage</a> *perso)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé <br/>
 Postconditions : récupère la position en X du perso.  <a href="#aa6eea940913b3770d67bf7e5d5672166"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a9723e1672c9a1b98b97c6de8242bc139">getPersoPosY</a> (const <a class="el" href="structPersonnage.html">Personnage</a> *perso)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé <br/>
 Postconditions : récupère la position en Y du perso.  <a href="#a9723e1672c9a1b98b97c6de8242bc139"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#ace37c7481c4d7eeab1002cb3deb3a896">setPersoPosX</a> (<a class="el" href="structPersonnage.html">Personnage</a> *perso, const int x)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé <br/>
 Postconditions : change la position en X du perso.  <a href="#ace37c7481c4d7eeab1002cb3deb3a896"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a65f3b43789bb900330c2c7b60ce9739a">setPersoPosY</a> (<a class="el" href="structPersonnage.html">Personnage</a> *perso, const int y)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé <br/>
 Postconditions : change la position en Y du perso.  <a href="#a65f3b43789bb900330c2c7b60ce9739a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#ad19216616c0c1fbd033d226a193e0f6e">getPersoInventaire</a> (const <a class="el" href="structPersonnage.html">Personnage</a> *perso, <a class="el" href="structInventaire.html">Inventaire</a> *inv)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé mais pas inv <br/>
 Postconditions : copie l'inventaire du perso dans inv.  <a href="#ad19216616c0c1fbd033d226a193e0f6e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structInventaire.html">Inventaire</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a607a6bb5651c53565d5b61307b642ef9">getPersoInventaire2</a> (<a class="el" href="structPersonnage.html">Personnage</a> *perso)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé <br/>
 Postconditions : retourne l'adresse de l'inventaire du perso.  <a href="#a607a6bb5651c53565d5b61307b642ef9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a02f53cbc3c543ce1178cbd703a240af2">getPersoCapacite</a> (const <a class="el" href="structPersonnage.html">Personnage</a> *perso, <a class="el" href="structCapacite.html">Capacite</a> *s)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso et s sont initialisés <br/>
 Postconditions : retourne l'ensemble des capacite du perso dans s.  <a href="#a02f53cbc3c543ce1178cbd703a240af2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structCapacite.html">Capacite</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a5160f7ed5468ea0d63fa0ffbe5169b0d">getPersoCapacite2</a> (<a class="el" href="structPersonnage.html">Personnage</a> *perso)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé <br/>
 Postconditions : retourne l'adresse de la <a class="el" href="structCapacite.html">Capacite</a> de perso.  <a href="#a5160f7ed5468ea0d63fa0ffbe5169b0d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structEquipement.html">Equipement</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#ac71efa2cc1800f0dffc06ce286036fd1">getPersoEquipement</a> (<a class="el" href="structPersonnage.html">Personnage</a> *perso)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé <br/>
 Postconditions : retourne l'adresse de l'<a class="el" href="structEquipement.html">Equipement</a> de perso.  <a href="#ac71efa2cc1800f0dffc06ce286036fd1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a2ac58c28111122120fddd7ba2c0d56fd">setPersoArgent</a> (<a class="el" href="structPersonnage.html">Personnage</a> *perso, const int somme)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé <br/>
 Postconditions : fixe la somme d'argent du perso.  <a href="#a2ac58c28111122120fddd7ba2c0d56fd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a1c7a53a797c7dfdc501c441d68a00253">addPersoPtDeVie</a> (<a class="el" href="structPersonnage.html">Personnage</a> *perso, const int pdv)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé <br/>
 Postconditions : ajoute pdv aux points de vie de perso.  <a href="#a1c7a53a797c7dfdc501c441d68a00253"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a2809343b560f6f1402a7943eb6508dd6">addPersoExperience</a> (<a class="el" href="structPersonnage.html">Personnage</a> *perso, const int exp)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a540fce4232dd54efe42ab98e54be9a6a">getPersoNiveau</a> (<a class="el" href="structPersonnage.html">Personnage</a> *perso)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a6c5ee3cd4d43da5df417bcb932abe7bf">ajouterInventaire</a> (<a class="el" href="structPersonnage.html">Personnage</a> *perso, <a class="el" href="structObjet.html">Objet</a> *obj)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé <br/>
 Postconditions : 1 obj est ajouté à l'inventaire de perso.  <a href="#a6c5ee3cd4d43da5df417bcb932abe7bf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a515a6c05477ab1146eee50b419b7d656">soustraireInventaire</a> (<a class="el" href="structPersonnage.html">Personnage</a> *perso, const <a class="el" href="structObjet.html">Objet</a> *obj)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé, obj est dans l'inventaire de perso <br/>
 Postconditions : 1 obj est retiré de l'inventaire de perso.  <a href="#a515a6c05477ab1146eee50b419b7d656"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a1b52f06e0979c1b37fbf60896d021106">ajouterCompetencePerso</a> (<a class="el" href="structPersonnage.html">Personnage</a> *perso, const int type, const int exp)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé, type &gt;0 <br/>
 Postconditions : ajoute la compétence associée à type (avec l'expérience exp) à perso.  <a href="#a1b52f06e0979c1b37fbf60896d021106"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#abdf0b1659e803ac36075ba882c29c280">persoUtiliseObjet</a> (<a class="el" href="structPersonnage.html">Personnage</a> *perso, <a class="el" href="structObjet.html">Objet</a> *obj, <a class="el" href="structPersonnage.html">Personnage</a> *cible)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé, obj est dans l'inventaire de perso éventuellement, cible correspond au personnage visé, initialisé <br/>
 Postconditions : obj est utilisé et si besoin retiré de l'inventaire de perso.  <a href="#abdf0b1659e803ac36075ba882c29c280"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a4fa4a3438a72c99a95d914e0af1b6fbc">copiePerso</a> (<a class="el" href="structPersonnage.html">Personnage</a> *perso1, <a class="el" href="structPersonnage.html">Personnage</a> *perso2)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso1 est initialisé, mais pas perso2 <br/>
 Postconditions : le contenu de perso1 est copié dans perso2.  <a href="#a4fa4a3438a72c99a95d914e0af1b6fbc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a0e130f46bf64b20968f45f901ad7e9e1">equiper</a> (<a class="el" href="structPersonnage.html">Personnage</a> *perso, <a class="el" href="structObjet.html">Objet</a> *obj, const int i)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialisé, obj appartient à l'inventaire de perso, 0&lt;=i&lt;3 <br/>
 Postconditions : obj est équipé (à la ième place s'il s'agit d'une arme)  <a href="#a0e130f46bf64b20968f45f901ad7e9e1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#ad2603abade56e8008ad1cd10ed99f0d0">initialiserTousLesPNJ</a> (<a class="el" href="structPersonnage.html">Personnage</a> **tabPNJ, <a class="el" href="structObjet.html">Objet</a> *tabObjets)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : tabPNJ n'est pas initialisé tabObjets contient tous les objets <br/>
 Postconditions : initialise tous les PNJ dans tabPNJ.  <a href="#ad2603abade56e8008ad1cd10ed99f0d0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a5a9df5774e681a993dd78af7e0442b67">libererTousLesPNJ</a> (<a class="el" href="structPersonnage.html">Personnage</a> **tabPNJ)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : tabPNJ est initialisé <br/>
 Postconditions : libère tabPNJ.  <a href="#a5a9df5774e681a993dd78af7e0442b67"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#af47f203d4b554291c54bc9adee5f399d">calculNiveau</a> (const int experience)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : experience&gt;=0 <br/>
 Postconditions : retourne le niveau lié à experience.  <a href="#af47f203d4b554291c54bc9adee5f399d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a8e4704894768ef954f22d74aee1155bd">calculPersoExperience</a> (<a class="el" href="structPersonnage.html">Personnage</a> *perso)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : perso est initialise <br/>
 Postconditions : retourne l'experience totale du perso.  <a href="#a8e4704894768ef954f22d74aee1155bd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="personnage_8c.html#a3de51249966fc615536b0fb800f3aef2">mainPerso</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : / <br/>
 Postconditions : Fonction de test de non-regression du module <a class="el" href="structPersonnage.html">Personnage</a> ; retourne 0 si tout s'est bien passé  <a href="#a3de51249966fc615536b0fb800f3aef2"></a><br/></td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a2809343b560f6f1402a7943eb6508dd6"></a><!-- doxytag: member="personnage.c::addPersoExperience" ref="a2809343b560f6f1402a7943eb6508dd6" args="(Personnage *perso, const int exp)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="personnage_8c.html#a2809343b560f6f1402a7943eb6508dd6">addPersoExperience</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>exp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a1c7a53a797c7dfdc501c441d68a00253"></a><!-- doxytag: member="personnage.c::addPersoPtDeVie" ref="a1c7a53a797c7dfdc501c441d68a00253" args="(Personnage *perso, const int pdv)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="personnage_8h.html#a1c7a53a797c7dfdc501c441d68a00253">addPersoPtDeVie</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>pdv</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé <br/>
 Postconditions : ajoute pdv aux points de vie de perso. </p>

</div>
</div>
<a class="anchor" id="a1b52f06e0979c1b37fbf60896d021106"></a><!-- doxytag: member="personnage.c::ajouterCompetencePerso" ref="a1b52f06e0979c1b37fbf60896d021106" args="(Personnage *perso, const int type, const int exp)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="personnage_8h.html#a1b52f06e0979c1b37fbf60896d021106">ajouterCompetencePerso</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>exp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé, type &gt;0 <br/>
 Postconditions : ajoute la compétence associée à type (avec l'expérience exp) à perso. </p>

</div>
</div>
<a class="anchor" id="a6c5ee3cd4d43da5df417bcb932abe7bf"></a><!-- doxytag: member="personnage.c::ajouterInventaire" ref="a6c5ee3cd4d43da5df417bcb932abe7bf" args="(Personnage *perso, Objet *obj)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="personnage_8h.html#a6c5ee3cd4d43da5df417bcb932abe7bf">ajouterInventaire</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>obj</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé <br/>
 Postconditions : 1 obj est ajouté à l'inventaire de perso. </p>

</div>
</div>
<a class="anchor" id="af47f203d4b554291c54bc9adee5f399d"></a><!-- doxytag: member="personnage.c::calculNiveau" ref="af47f203d4b554291c54bc9adee5f399d" args="(const int experience)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="personnage_8h.html#af47f203d4b554291c54bc9adee5f399d">calculNiveau</a> </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>experience</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : experience&gt;=0 <br/>
 Postconditions : retourne le niveau lié à experience. </p>

</div>
</div>
<a class="anchor" id="a8e4704894768ef954f22d74aee1155bd"></a><!-- doxytag: member="personnage.c::calculPersoExperience" ref="a8e4704894768ef954f22d74aee1155bd" args="(Personnage *perso)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="personnage_8h.html#a8e4704894768ef954f22d74aee1155bd">calculPersoExperience</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialise <br/>
 Postconditions : retourne l'experience totale du perso. </p>

</div>
</div>
<a class="anchor" id="aafc75061db756f5c40cd1ed96de18ed0"></a><!-- doxytag: member="personnage.c::chargerPerso" ref="aafc75061db756f5c40cd1ed96de18ed0" args="(Personnage *perso, const char nom[50], const char race, const char sexe, const char faction, const char carriere, const int experience, const int argent, const char attaque, const char defense, const char intelligence, const char agilite, const char charisme, const int ptDeVie, const int posX, const int posY, const Competence *liste, const int nbCompetence, const int *inventaire, const int nbObjet, const int armure[5], const int arme[3], Objet *tabObjet)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="personnage_8h.html#aafc75061db756f5c40cd1ed96de18ed0">chargerPerso</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char&#160;</td>
          <td class="paramname"><em>nom</em>[50], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char&#160;</td>
          <td class="paramname"><em>race</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char&#160;</td>
          <td class="paramname"><em>sexe</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char&#160;</td>
          <td class="paramname"><em>faction</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char&#160;</td>
          <td class="paramname"><em>carriere</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>experience</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>argent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char&#160;</td>
          <td class="paramname"><em>attaque</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char&#160;</td>
          <td class="paramname"><em>defense</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char&#160;</td>
          <td class="paramname"><em>intelligence</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char&#160;</td>
          <td class="paramname"><em>agilite</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char&#160;</td>
          <td class="paramname"><em>charisme</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>ptDeVie</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>posX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>posY</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structCompetence.html">Competence</a> *&#160;</td>
          <td class="paramname"><em>liste</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>nbCompetence</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int *&#160;</td>
          <td class="paramname"><em>inventaire</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>nbObjet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>armure</em>[5], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>arme</em>[3], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>tabObjet</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso n'est pas initialisé ou initialisé à vide tous les paramètres respectent les critères imposés par la structure <br/>
 Postconditions : perso est initialisé avec tous les paramètres de sa structure. </p>

</div>
</div>
<a class="anchor" id="a4fa4a3438a72c99a95d914e0af1b6fbc"></a><!-- doxytag: member="personnage.c::copiePerso" ref="a4fa4a3438a72c99a95d914e0af1b6fbc" args="(Personnage *perso1, Personnage *perso2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="personnage_8h.html#a4fa4a3438a72c99a95d914e0af1b6fbc">copiePerso</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso1 est initialisé, mais pas perso2 <br/>
 Postconditions : le contenu de perso1 est copié dans perso2. </p>

</div>
</div>
<a class="anchor" id="a0e130f46bf64b20968f45f901ad7e9e1"></a><!-- doxytag: member="personnage.c::equiper" ref="a0e130f46bf64b20968f45f901ad7e9e1" args="(Personnage *perso, Objet *obj, const int i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="personnage_8h.html#a0e130f46bf64b20968f45f901ad7e9e1">equiper</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>obj</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>i</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé, obj appartient à l'inventaire de perso, 0&lt;=i&lt;3 <br/>
 Postconditions : obj est équipé (à la ième place s'il s'agit d'une arme) </p>

</div>
</div>
<a class="anchor" id="a9d2950d8e223bb9161265aa96565ac77"></a><!-- doxytag: member="personnage.c::getCarriereNom" ref="a9d2950d8e223bb9161265aa96565ac77" args="(const char carriere, char *s)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="personnage_8h.html#a9d2950d8e223bb9161265aa96565ac77">getCarriereNom</a> </td>
          <td>(</td>
          <td class="paramtype">const char&#160;</td>
          <td class="paramname"><em>carriere</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>s</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé <br/>
 Postconditions : retourne le nom de la carriere dans s. </p>
<p>Preconditions : perso est initialisé <br/>
 Postconditions : copie le nom de la carriere carriere dans s. </p>

</div>
</div>
<a class="anchor" id="ad70a78a4b1f329f24edb75ff6404296d"></a><!-- doxytag: member="personnage.c::getNbCarriere" ref="ad70a78a4b1f329f24edb75ff6404296d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="personnage_8h.html#ad70a78a4b1f329f24edb75ff6404296d">getNbCarriere</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : / <br/>
 Postconditions : retourne le nombre de carrieres dans Carrieres.txt. </p>

</div>
</div>
<a class="anchor" id="a3c5c40bbdcb31fc766740446f6066339"></a><!-- doxytag: member="personnage.c::getNbPNJ" ref="a3c5c40bbdcb31fc766740446f6066339" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="personnage_8h.html#a3c5c40bbdcb31fc766740446f6066339">getNbPNJ</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé <br/>
 Postconditions : 1 obj est ajouté à l'inventaire de perso. </p>
<p>Preconditions : / <br/>
 Postconditions : retourne le nombre de personnages dans PNJ.txt. </p>

</div>
</div>
<a class="anchor" id="a1ba9227365c4dbffc13327e9905050cf"></a><!-- doxytag: member="personnage.c::getPersoAgilite" ref="a1ba9227365c4dbffc13327e9905050cf" args="(const Personnage *perso)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="personnage_8h.html#a1ba9227365c4dbffc13327e9905050cf">getPersoAgilite</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé <br/>
 Postconditions : retourne l'agilite du perso. </p>

</div>
</div>
<a class="anchor" id="a7978919dfdd2414588e8c94bc186c70d"></a><!-- doxytag: member="personnage.c::getPersoArgent" ref="a7978919dfdd2414588e8c94bc186c70d" args="(const Personnage *perso)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="personnage_8h.html#a9f423ebad617cfa63cd745dc8a0b1fbb">getPersoArgent</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a90709978c20a6f0ca581df54de6e001b"></a><!-- doxytag: member="personnage.c::getPersoAttaque" ref="a90709978c20a6f0ca581df54de6e001b" args="(const Personnage *perso)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="personnage_8h.html#a90709978c20a6f0ca581df54de6e001b">getPersoAttaque</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé <br/>
 Postconditions : retourne l'attaque du perso. </p>

</div>
</div>
<a class="anchor" id="a02f53cbc3c543ce1178cbd703a240af2"></a><!-- doxytag: member="personnage.c::getPersoCapacite" ref="a02f53cbc3c543ce1178cbd703a240af2" args="(const Personnage *perso, Capacite *s)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="personnage_8h.html#a02f53cbc3c543ce1178cbd703a240af2">getPersoCapacite</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structCapacite.html">Capacite</a> *&#160;</td>
          <td class="paramname"><em>s</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso et s sont initialisés <br/>
 Postconditions : retourne l'ensemble des capacite du perso dans s. </p>

</div>
</div>
<a class="anchor" id="a5160f7ed5468ea0d63fa0ffbe5169b0d"></a><!-- doxytag: member="personnage.c::getPersoCapacite2" ref="a5160f7ed5468ea0d63fa0ffbe5169b0d" args="(Personnage *perso)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structCapacite.html">Capacite</a>* <a class="el" href="personnage_8h.html#a5160f7ed5468ea0d63fa0ffbe5169b0d">getPersoCapacite2</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé <br/>
 Postconditions : retourne l'adresse de la <a class="el" href="structCapacite.html">Capacite</a> de perso. </p>

</div>
</div>
<a class="anchor" id="ab4893cfc2068bf42c0711709f09a8377"></a><!-- doxytag: member="personnage.c::getPersoCarriere" ref="ab4893cfc2068bf42c0711709f09a8377" args="(const Personnage *perso)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="personnage_8h.html#ab4893cfc2068bf42c0711709f09a8377">getPersoCarriere</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé <br/>
 Postconditions : retourne la carriere du perso. </p>

</div>
</div>
<a class="anchor" id="a8df236592e184846c10e8ccb14eac8dc"></a><!-- doxytag: member="personnage.c::getPersoCharisme" ref="a8df236592e184846c10e8ccb14eac8dc" args="(const Personnage *perso)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="personnage_8h.html#a8df236592e184846c10e8ccb14eac8dc">getPersoCharisme</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé <br/>
 Postconditions : retourne le charsime du perso. </p>

</div>
</div>
<a class="anchor" id="a2af3a1ad9dddc47eefd1a0c80be57135"></a><!-- doxytag: member="personnage.c::getPersoDefense" ref="a2af3a1ad9dddc47eefd1a0c80be57135" args="(const Personnage *perso)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="personnage_8h.html#a2af3a1ad9dddc47eefd1a0c80be57135">getPersoDefense</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé <br/>
 Postconditions : retourne la defense du perso. </p>

</div>
</div>
<a class="anchor" id="ac71efa2cc1800f0dffc06ce286036fd1"></a><!-- doxytag: member="personnage.c::getPersoEquipement" ref="ac71efa2cc1800f0dffc06ce286036fd1" args="(Personnage *perso)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structEquipement.html">Equipement</a>* <a class="el" href="personnage_8h.html#ac71efa2cc1800f0dffc06ce286036fd1">getPersoEquipement</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé <br/>
 Postconditions : retourne l'adresse de l'<a class="el" href="structEquipement.html">Equipement</a> de perso. </p>

</div>
</div>
<a class="anchor" id="ad02c19f5ec81a8e80cd96eef6c020f5a"></a><!-- doxytag: member="personnage.c::getPersoExperience" ref="ad02c19f5ec81a8e80cd96eef6c020f5a" args="(const Personnage *perso)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="personnage_8h.html#ad02c19f5ec81a8e80cd96eef6c020f5a">getPersoExperience</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé <br/>
 Postconditions : retourne l'experience du perso. </p>

</div>
</div>
<a class="anchor" id="a81a3477252b8de71aa6e0dd73678b91b"></a><!-- doxytag: member="personnage.c::getPersoFaction" ref="a81a3477252b8de71aa6e0dd73678b91b" args="(const Personnage *perso)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="personnage_8h.html#a81a3477252b8de71aa6e0dd73678b91b">getPersoFaction</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé <br/>
 Postconditions : retourne la faction du perso. </p>

</div>
</div>
<a class="anchor" id="afc1aa4b064aa249b6ac96d5f0ae32b31"></a><!-- doxytag: member="personnage.c::getPersoFactionNom" ref="afc1aa4b064aa249b6ac96d5f0ae32b31" args="(char *chaine, const Personnage *perso)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="personnage_8h.html#afc1aa4b064aa249b6ac96d5f0ae32b31">getPersoFactionNom</a> </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>chaine</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé <br/>
 Postconditions : copie le nom de la faction de perso dans chaine. </p>

</div>
</div>
<a class="anchor" id="a18e5205a52d5d102d72cdf2c992f7107"></a><!-- doxytag: member="personnage.c::getPersoIntelligence" ref="a18e5205a52d5d102d72cdf2c992f7107" args="(const Personnage *perso)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="personnage_8h.html#a18e5205a52d5d102d72cdf2c992f7107">getPersoIntelligence</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé <br/>
 Postconditions : retourne l'intelligence du perso. </p>

</div>
</div>
<a class="anchor" id="ad19216616c0c1fbd033d226a193e0f6e"></a><!-- doxytag: member="personnage.c::getPersoInventaire" ref="ad19216616c0c1fbd033d226a193e0f6e" args="(const Personnage *perso, Inventaire *inv)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="personnage_8h.html#ad19216616c0c1fbd033d226a193e0f6e">getPersoInventaire</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structInventaire.html">Inventaire</a> *&#160;</td>
          <td class="paramname"><em>inv</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé mais pas inv <br/>
 Postconditions : copie l'inventaire du perso dans inv. </p>

</div>
</div>
<a class="anchor" id="a607a6bb5651c53565d5b61307b642ef9"></a><!-- doxytag: member="personnage.c::getPersoInventaire2" ref="a607a6bb5651c53565d5b61307b642ef9" args="(Personnage *perso)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structInventaire.html">Inventaire</a>* <a class="el" href="personnage_8h.html#a607a6bb5651c53565d5b61307b642ef9">getPersoInventaire2</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé <br/>
 Postconditions : retourne l'adresse de l'inventaire du perso. </p>

</div>
</div>
<a class="anchor" id="a540fce4232dd54efe42ab98e54be9a6a"></a><!-- doxytag: member="personnage.c::getPersoNiveau" ref="a540fce4232dd54efe42ab98e54be9a6a" args="(Personnage *perso)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="personnage_8c.html#a540fce4232dd54efe42ab98e54be9a6a">getPersoNiveau</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a6c5dd9378cd5c3b0fe1f416b8264ff34"></a><!-- doxytag: member="personnage.c::getPersoNom" ref="a6c5dd9378cd5c3b0fe1f416b8264ff34" args="(char *maChaine, const Personnage *perso)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="personnage_8h.html#a6c5dd9378cd5c3b0fe1f416b8264ff34">getPersoNom</a> </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>maChaine</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé, maChaine a une longueur &gt;= 30 <br/>
 Postconditions : copie le nom de perso dans maChaine. </p>

</div>
</div>
<a class="anchor" id="aa6eea940913b3770d67bf7e5d5672166"></a><!-- doxytag: member="personnage.c::getPersoPosX" ref="aa6eea940913b3770d67bf7e5d5672166" args="(const Personnage *perso)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="personnage_8h.html#aa6eea940913b3770d67bf7e5d5672166">getPersoPosX</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé <br/>
 Postconditions : récupère la position en X du perso. </p>

</div>
</div>
<a class="anchor" id="a9723e1672c9a1b98b97c6de8242bc139"></a><!-- doxytag: member="personnage.c::getPersoPosY" ref="a9723e1672c9a1b98b97c6de8242bc139" args="(const Personnage *perso)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="personnage_8h.html#a9723e1672c9a1b98b97c6de8242bc139">getPersoPosY</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé <br/>
 Postconditions : récupère la position en Y du perso. </p>

</div>
</div>
<a class="anchor" id="a037b8322d6f0b1987001cf1f47bea1a4"></a><!-- doxytag: member="personnage.c::getPersoPtDeVie" ref="a037b8322d6f0b1987001cf1f47bea1a4" args="(const Personnage *perso)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="personnage_8h.html#a037b8322d6f0b1987001cf1f47bea1a4">getPersoPtDeVie</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé <br/>
 Postconditions : retourne les points de vie du perso. </p>

</div>
</div>
<a class="anchor" id="adc299fd0c8f383bfacb4a2b1a9059db3"></a><!-- doxytag: member="personnage.c::getPersoRace" ref="adc299fd0c8f383bfacb4a2b1a9059db3" args="(const Personnage *perso)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="personnage_8h.html#adc299fd0c8f383bfacb4a2b1a9059db3">getPersoRace</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé <br/>
 Postconditions : retourne la race du perso. </p>

</div>
</div>
<a class="anchor" id="ad3cdc9ecc990b0c3b3d8ee82a50a2d70"></a><!-- doxytag: member="personnage.c::getPersoSexe" ref="ad3cdc9ecc990b0c3b3d8ee82a50a2d70" args="(const Personnage *perso)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="personnage_8h.html#ad3cdc9ecc990b0c3b3d8ee82a50a2d70">getPersoSexe</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé <br/>
 Postconditions : retourne le sexe du perso. </p>

</div>
</div>
<a class="anchor" id="a48a3a6444b623b7b21f1d61b0fa8b4b1"></a><!-- doxytag: member="personnage.c::getRaceNom" ref="a48a3a6444b623b7b21f1d61b0fa8b4b1" args="(char *chaine, char race)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="personnage_8h.html#a48a3a6444b623b7b21f1d61b0fa8b4b1">getRaceNom</a> </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>chaine</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>race</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : / <br/>
 Postconditions : copie le nom associé à race dans chaine. </p>

</div>
</div>
<a class="anchor" id="ad82354a37f8fe64c2c2ac0112a2b7bd9"></a><!-- doxytag: member="personnage.c::getSexeNom" ref="ad82354a37f8fe64c2c2ac0112a2b7bd9" args="(char *chaine, const char sexe)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="personnage_8h.html#abcb0ab6cb7830f4f92b466beec5285c9">getSexeNom</a> </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>chaine</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char&#160;</td>
          <td class="paramname"><em>sexe</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : / <br/>
 Postconditions : copie le nom associé à sexe dans chaine. </p>

</div>
</div>
<a class="anchor" id="ad2603abade56e8008ad1cd10ed99f0d0"></a><!-- doxytag: member="personnage.c::initialiserTousLesPNJ" ref="ad2603abade56e8008ad1cd10ed99f0d0" args="(Personnage **tabPNJ, Objet *tabObjets)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="personnage_8h.html#ad2603abade56e8008ad1cd10ed99f0d0">initialiserTousLesPNJ</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPersonnage.html">Personnage</a> **&#160;</td>
          <td class="paramname"><em>tabPNJ</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>tabObjets</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : tabPNJ n'est pas initialisé tabObjets contient tous les objets <br/>
 Postconditions : initialise tous les PNJ dans tabPNJ. </p>

</div>
</div>
<a class="anchor" id="a5a9df5774e681a993dd78af7e0442b67"></a><!-- doxytag: member="personnage.c::libererTousLesPNJ" ref="a5a9df5774e681a993dd78af7e0442b67" args="(Personnage **tabPNJ)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="personnage_8h.html#a5a9df5774e681a993dd78af7e0442b67">libererTousLesPNJ</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPersonnage.html">Personnage</a> **&#160;</td>
          <td class="paramname"><em>tabPNJ</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : tabPNJ est initialisé <br/>
 Postconditions : libère tabPNJ. </p>

</div>
</div>
<a class="anchor" id="a3de51249966fc615536b0fb800f3aef2"></a><!-- doxytag: member="personnage.c::mainPerso" ref="a3de51249966fc615536b0fb800f3aef2" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="personnage_8h.html#a3de51249966fc615536b0fb800f3aef2">mainPerso</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : / <br/>
 Postconditions : Fonction de test de non-regression du module <a class="el" href="structPersonnage.html">Personnage</a> ; retourne 0 si tout s'est bien passé </p>

</div>
</div>
<a class="anchor" id="a21c887d8b0b22116d983534f81886f65"></a><!-- doxytag: member="personnage.c::nouveauPerso" ref="a21c887d8b0b22116d983534f81886f65" args="(Personnage *perso, const char nom[], const char race, const char sexe, const char faction, const char carriere, const int experience, const int argent, Objet *tab)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="personnage_8h.html#a21c887d8b0b22116d983534f81886f65">nouveauPerso</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char&#160;</td>
          <td class="paramname"><em>nom</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char&#160;</td>
          <td class="paramname"><em>race</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char&#160;</td>
          <td class="paramname"><em>sexe</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char&#160;</td>
          <td class="paramname"><em>faction</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char&#160;</td>
          <td class="paramname"><em>carriere</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>experience</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>argent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>tab</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso n'est pas initialisé ou initialisé à vide tab contient tous les objets du jeu les autres paramètres respectent les critères imposés par la structure <br/>
 Postconditions : perso est initialisé et ses paramètres nom, race, sexe, carriere, et expérience sont fournis. </p>

</div>
</div>
<a class="anchor" id="a9e546144d60b8470f688e1639d73254a"></a><!-- doxytag: member="personnage.c::persoInit" ref="a9e546144d60b8470f688e1639d73254a" args="(Personnage *perso)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="personnage_8h.html#a9e546144d60b8470f688e1639d73254a">persoInit</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso n'a pas déjà été initialisé <br/>
 Postconditions : perso est initialisé, vide. </p>
<dl class="author"><dt><b>Author:</b></dt><dd>RODARIE Dimitri, VERSAEVEL Romain, FLORES Isabelle </dd></dl>

</div>
</div>
<a class="anchor" id="a0c387c55be7f1a5c8be32c5897de83cc"></a><!-- doxytag: member="personnage.c::persoInitPNJ" ref="a0c387c55be7f1a5c8be32c5897de83cc" args="(Personnage *perso, const int l, Objet *tab)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="personnage_8h.html#a0c387c55be7f1a5c8be32c5897de83cc">persoInitPNJ</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>l</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>tab</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso n'est pas initialisé ou initialisé à vide, l&lt;=<a class="el" href="perso__Editeur_8c.html#a3c5c40bbdcb31fc766740446f6066339" title="Preconditions : perso est initialisé   Postconditions : 1 obj est ajouté à l&#39;inventaire de perso...">getNbPNJ()</a> tab contient tous les objets du jeu <br/>
 Postconditions : perso est initialisé avec les paramètres du l-ième PNJ du fichier PNJ.txt. </p>

</div>
</div>
<a class="anchor" id="a359b758b174089f2666ef2627cf9494f"></a><!-- doxytag: member="personnage.c::persoLibere" ref="a359b758b174089f2666ef2627cf9494f" args="(Personnage *perso)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="personnage_8h.html#a359b758b174089f2666ef2627cf9494f">persoLibere</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé <br/>
 Postconditions : perso est libéré </p>

</div>
</div>
<a class="anchor" id="abdf0b1659e803ac36075ba882c29c280"></a><!-- doxytag: member="personnage.c::persoUtiliseObjet" ref="abdf0b1659e803ac36075ba882c29c280" args="(Personnage *perso, Objet *obj, Personnage *cible)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="personnage_8h.html#abdf0b1659e803ac36075ba882c29c280">persoUtiliseObjet</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>obj</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>cible</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé, obj est dans l'inventaire de perso éventuellement, cible correspond au personnage visé, initialisé <br/>
 Postconditions : obj est utilisé et si besoin retiré de l'inventaire de perso. </p>

</div>
</div>
<a class="anchor" id="a2ac58c28111122120fddd7ba2c0d56fd"></a><!-- doxytag: member="personnage.c::setPersoArgent" ref="a2ac58c28111122120fddd7ba2c0d56fd" args="(Personnage *perso, const int somme)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="personnage_8h.html#a2ac58c28111122120fddd7ba2c0d56fd">setPersoArgent</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>somme</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé <br/>
 Postconditions : fixe la somme d'argent du perso. </p>

</div>
</div>
<a class="anchor" id="afdf8a8513bc06ab2b1f8c709c81203a2"></a><!-- doxytag: member="personnage.c::setPersoFaction" ref="afdf8a8513bc06ab2b1f8c709c81203a2" args="(Personnage *perso, const char faction)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="personnage_8h.html#afdf8a8513bc06ab2b1f8c709c81203a2">setPersoFaction</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char&#160;</td>
          <td class="paramname"><em>faction</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé <br/>
 Postconditions : fixe la faction du perso. </p>

</div>
</div>
<a class="anchor" id="ace37c7481c4d7eeab1002cb3deb3a896"></a><!-- doxytag: member="personnage.c::setPersoPosX" ref="ace37c7481c4d7eeab1002cb3deb3a896" args="(Personnage *perso, const int x)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="personnage_8h.html#ace37c7481c4d7eeab1002cb3deb3a896">setPersoPosX</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>x</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé <br/>
 Postconditions : change la position en X du perso. </p>

</div>
</div>
<a class="anchor" id="a65f3b43789bb900330c2c7b60ce9739a"></a><!-- doxytag: member="personnage.c::setPersoPosY" ref="a65f3b43789bb900330c2c7b60ce9739a" args="(Personnage *perso, const int y)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="personnage_8h.html#a65f3b43789bb900330c2c7b60ce9739a">setPersoPosY</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé <br/>
 Postconditions : change la position en Y du perso. </p>

</div>
</div>
<a class="anchor" id="a515a6c05477ab1146eee50b419b7d656"></a><!-- doxytag: member="personnage.c::soustraireInventaire" ref="a515a6c05477ab1146eee50b419b7d656" args="(Personnage *perso, const Objet *obj)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="personnage_8h.html#a515a6c05477ab1146eee50b419b7d656">soustraireInventaire</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>perso</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>obj</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : perso est initialisé, obj est dans l'inventaire de perso <br/>
 Postconditions : 1 obj est retiré de l'inventaire de perso. </p>

</div>
</div>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Jun 4 2013 08:45:33 for Iniuriam by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
